package com.zhiyou.dao;

import com.zhiyou.entity.House;
import com.zhiyou.entity.Logistics;
import com.zhiyou.entity.Record;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;

public interface RecordMapper extends Mapper<Record> {

    List<Record> selectAllRecord();

    List<Record> selectRecordByHouseRoom(House house);

    List<Logistics> selectAllLogistic();

    void addRecord(Record record);

    House getHouseByHouseRoomno(House house);

    Record getRecordById(Integer id);

    void updateRecordById(Record record);
    
    List<Record> getRecordByLikeloName(Logistics logistics);
    
    List<Record> getRecordByLikeRecordTime(Record record);

    List<Record> getRecordByLikehouseArea(House house);

    void deleteRecordById(Record record);
}